package com.mc.kotlinlearn

import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        initView()
    }

    private fun initView(){
        var user = User("bloczzgcold",27,12.1f)
        tvContent.setText("user lastName:"+user.lastName)
    }

    fun next(view :View?){
        var intent = Intent(this,NextActivity::class.java)
//        intent.putExtra("name","name is bloczzgcold ")
        startActivity(intent)
    }
}
